﻿using PublicClass;
using PublicClass.BreedingEnum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.Breeding.Domain
{
    /// <summary>
    /// 死亡管理
    /// </summary>
    [Table("DeathManage")]
    public class DeathManage:AuditFields
    {
        /// <summary>
        /// 主键 ID
        /// </summary>
        [Key]
        public int DMId { get; set; }
        /// <summary>
        /// 耳号
        /// </summary>
        public string? Earbugles { get; set; }
        /// <summary>
        /// 死亡日期
        /// </summary>
        public DateTime? DeathTime { get; set; }
        /// <summary>
        /// 死亡原因
        /// </summary>
        public DeathCause? DeathCause { get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        public Breed? Breed { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public Sex? Sex { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? Reproductive { get; set; }
        /// <summary>
        /// 死亡月龄
        /// </summary>
        public int DeathMonth { get; set; }
        /// <summary>
        /// 死亡日龄
        /// </summary>
        public int DeathDay { get; set; }
        /// <summary>
        /// 栋舍
        /// </summary>
        public string? DeathDorm { get; set; }
        /// <summary>
        /// 栏位
        /// </summary>
        public string? DeathColumns { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string? AuditorBy { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? AuditorDate { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        public string? DocumentCord { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public bool ExamineType { get; set; }

        /// <summary>
        /// 羊只类型
        /// </summary>
        public int? SheepTypeId { get; set; }
        /// <summary>
        /// 繁殖状态
        /// </summary>
        public ReproductiveState? ReproductiveState { get; set; }
    }
}
